import dgHeader from '../../components/dgHeader/index.vue'
import dgFooter from '../../components/dgFooter/index.vue'

export default {
    data(){
        return {
            name : 'hello world',
            list : []
        }
    },
    created(){
        request.get('https://www.easy-mock.com/mock/591d317c9aba4141cf26a50b/example_1495085436160/api/getSeckill').then(res=>{
            if(res.data.code === 0){
                this.list = res.data.data.list
                console.log(this.list)
            }
        })
    },
    components:{
        dgHeader,
        dgFooter,
    }
}